<template>
  <div class="container">
    <!-- 运动方式 -->
    <div class="sport-box">
      <div class="sport-item">
        <div class="sport-animation"></div>
        <span class="sport-name">头部颠球</span>
        <img
          src="https://ssl-pubpic.51yund.com/1311471218.png"
          class="sport-icon"
        />
      </div>
      <div class="sport-item">
        <div class="sport-animation"></div>
        <span class="sport-name">腿部颠球</span>
        <img
          src="https://ssl-pubpic.51yund.com/1311470755.png"
          class="sport-icon"
        />
      </div>
    </div>
  </div>
</template>

<script>
import { set } from 'vue'
export default {
  data() {
    return {
      nowChoose: 0,
      timer: null,
      period: 0,
      myAppoint: 200,
      finalNum: 0,
    }
  },
  mounted() {},
}
</script>

<style lang="less" scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  .sport-box {
    margin-top: 0.16rem;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .sport-item {
      position: relative;
      display: flex;
      justify-content: space-around;
      align-items: center;
      width: 48%;
      height: 0.56rem;
      background: #ffffff;
      overflow: hidden;
      background-image: linear-gradient(
        132deg,
        rgba(14, 185, 255, 0.32) 0%,
        rgba(244, 255, 213, 0.31) 100%
      );

      border-radius: 0.06rem;
      box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
      .sport-animation {
        position: absolute;
        top: 0;
        left: 0;
        width: 0.2rem;
        height: 0.56rem;
        background-color: #fff;
        animation: sportBtn 2s linear infinite;
      }

      .sport-name {
        font-family: PingFangSC-Medium;
        font-weight: 500;
        font-size: 0.18rem;
        color: #01145e;
        text-align: center;
        z-index: 10;
      }

      .sport-icon {
        width: 0.4rem;
        width: 0.4rem;
        z-index: 10;
      }
    }
  }
}
@keyframes sportBtn {
  0% {
    transform: translate(-20vw) skew(-30deg);
  }

  100% {
    transform: translate(120vw) skew(-30deg);
  }
}
</style>
